﻿using WpfAi.Enum;
using Brilliants.UI;
using System.Windows;

namespace WpfAi
{
    /// <summary>
    /// ChoiceWindow.xaml 的交互逻辑
    /// </summary>
    public partial class ChoiceWindow : NbWindow
    {
        public ChoiceWindow()
        {
            InitializeComponent();
        }
        /// <summary>
        /// 核心模组单板测试
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>

        private void Core_Click(object sender, RoutedEventArgs e)
        {
            MainWindow mwin = new MainWindow(EnumWindowType.Core, EnumBoardType.Board);
            Application.Current.MainWindow = mwin;
            this.Close();
            mwin.Show();
        }
        /// <summary>
        /// 核心模组整机测试
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Core1_Click(object sender, RoutedEventArgs e)
        {
            MainWindow mwin = new MainWindow(EnumWindowType.Core, EnumBoardType.Integrate);
            Application.Current.MainWindow = mwin;
            this.Close();
            mwin.Show();
        }
        /// <summary>
        /// 触摸显示模组单板测试
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Screen_Click(object sender, RoutedEventArgs e)
        {
            MainWindow mwin = new MainWindow(EnumWindowType.Screen, EnumBoardType.Board);
            Application.Current.MainWindow = mwin;
            this.Close();
            mwin.Show();
        }
        /// <summary>
        /// 核心模组整机测试
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Assemble1_Click(object sender, RoutedEventArgs e)
        {
            MainWindow mwin = new MainWindow(EnumWindowType.Assemble, EnumBoardType.Integrate);
            Application.Current.MainWindow = mwin;
            this.Close();
            mwin.Show();
        }
        /// <summary>
        /// 触摸显示模组整机测试
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Screen1_Click(object sender, RoutedEventArgs e)
        {
            MainWindow mwin = new MainWindow(EnumWindowType.Screen, EnumBoardType.Integrate);
            Application.Current.MainWindow = mwin;
            this.Close();
            mwin.Show();
        }

        ///// <summary>
        ///// 核心模组单板测试
        ///// </summary>
        ///// <param name="sender"></param>
        ///// <param name="e"></param>

        //private void Assemble_Click(object sender, RoutedEventArgs e)
        //{
        //    MainWindow mwin = new MainWindow(EnumWindowType.Assemble, EnumBoardType.Board);
        //    Application.Current.MainWindow = mwin;
        //    this.Close();
        //    mwin.Show();
        //}


    }
}
